import React, { Component } from 'react'
import { Switch,Route, NavLink } from 'react-router-dom'
import School from './views/School';
import Teacher from './views/Teacher';

export default class About extends Component {
    render() {
        return (
            <div>
           
                <h2> 关于我们页 </h2>

                 <NavLink to={{pathname:'/about/school',query:{title:'关于学校 八维宏烨'}}}>关于学校</NavLink>|
                 <span onClick={()=>{
                    this.props.history.push({pathname:'/about/teacher',state:{title:'关于讲师xxxx'}})
                 }}>关于教师</span>



                 <Switch>
                 <Route path="/about/school" component={School}></Route>
                 <Route path="/about/teacher" component={Teacher}></Route>
                 </Switch>
            </div>
        )
    }
}
